package com.mtable.service.impl;

import java.security.SecureRandom;
import java.util.Arrays;

import org.springframework.stereotype.Service;

import com.mchange.v2.c3p0.impl.IdentityTokenized;
@Service
public class MidentityToken implements IdentityTokenized {

	@Override
	public String getIdentityToken() {
		SecureRandom random = new SecureRandom();
		byte[] bytes = new byte[20];
		random.nextBytes(bytes);
		return Arrays.toString(bytes);
	}

	@Override
	public void setIdentityToken(String arg0) {
		// TODO Auto-generated method stub

	}
	
	public static void main(String[] args) {
		System.out.println(new MidentityToken().getIdentityToken());
		
	}

}
